package com.iknow.activity;

import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class AboutActivity extends Activity
{
  private static String mPackageName = "com.iknow";
  public Button mBackButton;
  private TextView mVerNameText = null;

  public AboutActivity()
  {
    this.mBackButton = null;
  }

  private void initView()
  {
    this.mVerNameText = ((TextView)findViewById(2131296264));
    try
    {
      PackageInfo localPackageInfo = getPackageManager().getPackageInfo(mPackageName, 16384);
      this.mVerNameText.setText("版本号:" + localPackageInfo.versionName);
      findViewById(2131296344).setVisibility(8);
      this.mBackButton = ((Button)findViewById(2131296342));
      this.mBackButton.setOnClickListener(new View.OnClickListener(this)
      {
        public void onClick()
        {
          this.this$0.finish();
        }
      });
      return;
    }
    catch (PackageManager.NameNotFoundException localNameNotFoundException)
    {
      localNameNotFoundException.printStackTrace();
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    requestWindowFeature(1);
    setContentView(2130903040);
    initView();
  }
}